package com.zhiyou100.crm.service.impl;

import com.zhiyou100.crm.dao.CustomerStateDao;
import com.zhiyou100.crm.dao.impl.CustomerStateDaoImpl;
import com.zhiyou100.crm.service.CustomerStateService;
import com.zhiyou100.crm.util.Customer;
import com.zhiyou100.crm.util.CustomerState;

import java.util.List;

public class CustomerStateServiceImpl implements CustomerStateService {
    CustomerStateDao customerStateDao=new CustomerStateDaoImpl();
    @Override
    public List<CustomerState> query() {
        return customerStateDao.query();
    }

    @Override
    public int delete(int id) {
        return customerStateDao.delete(id);
    }

    @Override
    public int update(CustomerState customerState) {
        return customerStateDao.update(customerState);
    }

    @Override
    public int insert(CustomerState customerState) {
        return customerStateDao.insert(customerState);
    }
}
